package org.kernely.ui.utils;

import org.kernely.security.persistence.UserDetails;
import org.kernely.ui.mvp.KernelyEvent;
import org.kernely.ui.mvp.KernelyEventSender;

/**
 * This event is used to force MainApplication to display a profile page.
 */
public class DisplayProfileEvent extends KernelyEvent {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private UserDetails details;
	
	/**
	 * KernelyPublicProfileAttachedEvent's constructor
	 * @param source : The KernelyEventSender who fires this event
	 */
	public DisplayProfileEvent(KernelyEventSender source, UserDetails details){
		super(source);
		this.details = details;
	}

	/**
	 * Gets the details
	 * @return the details
	 */
	public UserDetails getDetails() {
		return details;
	}
	
	
}
